package com.zb.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.zb.entity.ZjCodeLog04;
import com.zb.entity.ZjCodeLog05;
import com.zb.mapper.ZjCodeLog04Mapper;
import com.zb.mapper.ZjCodeLog05Mapper;
import com.zb.service.ZjCodeLog04Service;
import com.zb.service.ZjCodeLog05Service;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 编码日志表 服务实现类
 * </p>
 *
 * @author WEN
 * @since 2023-08-24
 */
@Service
public class ZjCodeLog05ServiceImpl extends ServiceImpl<ZjCodeLog05Mapper, ZjCodeLog05> implements ZjCodeLog05Service {

    // 根据编码ID删除
    @Override
    public void deleteBatchByCodeIds(List<Long> codeIds) {
        if (null == codeIds || codeIds.isEmpty()) {
            return;
        }
        QueryWrapper<ZjCodeLog05> wrapper = new QueryWrapper<>();
        wrapper.in("code_id", codeIds);
        this.remove(wrapper);
    }
}
